<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://www.yaodian100.com/jsp/yaodian100" prefix="yaodian100" %>
<%@taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt-rt"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt"%>
<%@	page import="com.yaodian100.core.common.utils.ServerValue"%>
<c-rt:set var="midContextPath" value='<%=ServerValue.getMidContextPath()%>'/>
<!-- 月历 -->
<script type="text/javascript" charset="UTF-8" src="/js/jquery.datepick.js"></script>
<script type="text/javascript" charset="UTF-8" src="/js/jquery.datepick-zh-CN.js"></script>
<link rel="stylesheet" type="text/css" href="/css/smoothness.datepick.css" />
<script language="javascript">
	$().ready( function() {
		$('#startDateParam').datepick({minDate: null, maxDate: new Date(), showOn: 'both', 
	    	buttonImageOnly: true, buttonImage: '${midContextPath}/images/calendar.gif',dateFormat:"yy-mm-dd",yearRange: '-3:+3'}); 
		$('#endDateParam').datepick({minDate: null, maxDate: new Date(), showOn: 'both', 
	    	buttonImageOnly: true, buttonImage: '${midContextPath}/images/calendar.gif',dateFormat:"yy-mm-dd",yearRange: '-3:+3'});
		$('#applyStDateParam').datepick({minDate: null, maxDate: new Date(), showOn: 'both', 
	    	buttonImageOnly: true, buttonImage: '${midContextPath}/images/calendar.gif',dateFormat:"yy-mm-dd",yearRange: '-3:+3'}); 
		$('#applyEndDateParam').datepick({minDate: null, maxDate: new Date(), showOn: 'both', 
	    	buttonImageOnly: true, buttonImage: '${midContextPath}/images/calendar.gif',dateFormat:"yy-mm-dd",yearRange: '-3:+3'});  
		$('#reviewStartDateParam').datepick({minDate: null, maxDate: new Date(), showOn: 'both', 
	    	buttonImageOnly: true, buttonImage: '${midContextPath}/images/calendar.gif',dateFormat:"yy-mm-dd",yearRange: '-3:+3'}); 
		$('#reviewEndDateParam').datepick({minDate: null, maxDate: new Date(), showOn: 'both', 
	    	buttonImageOnly: true, buttonImage: '${midContextPath}/images/calendar.gif',dateFormat:"yy-mm-dd",yearRange: '-3:+3'});    	
	});
</script>
<s:actionerror />
<s:actionmessage />
<s:fielderror />
<h1>招领单管理</h1>
<div class="data-form">
	<s:form action="search.do" method="post">
	订单编号：
	<input name="orderIdParam" type="text" id="orderIdParam"
		value="${orderIdParam}" size="20" maxlength="20">
	汇款单号：
	<input name="applyClaimIdParam" type="text" id="applyClaimIdParam"
		value="${applyClaimIdParam}" size="20" maxlength="20"><br/>
	<input type="radio" name="chooseDate" id="chooseDate" value="C" <c-rt:if test="${empty chooseDate or chooseDate eq 'C'}">checked="checked"</c-rt:if>/>
	申请日期：
	<input name="startDateParam" type="text" id="startDateParam"
		value="${startDateParam}" size="10" maxlength="10">
    ~ 
  <input name="endDateParam" type="text" id="endDateParam"
		value="${endDateParam}" size="10" maxlength="10"><br/>
		
	<input type="radio" name="chooseDate" id="chooseDate" value="R" <c-rt:if test="${chooseDate eq 'R'}">checked="checked"</c-rt:if>/>
	财务批准日期：
	<input name="reviewStartDateParam" type="text" id="reviewStartDateParam"
		value="${reviewStartDateParam}" size="10" maxlength="10">
    ~ 
  <input name="reviewEndDateParam" type="text" id="reviewEndDateParam"
		value="${reviewEndDateParam}" size="10" maxlength="10"><br/>
	<!-- 申请日期：
	<input name="applyStDateParam" type="text" id="applyStDateParam"
		value="${applyStDateParam}" size="10" maxlength="10">
    ~ 
  <input name="applyEndDateParam" type="text" id="applyEndDateParam"
		value="${applyEndDateParam}" size="10" maxlength="10"> -->
	处理方式：<s:select name="claimTypeParam"
		list="claimTypeMenu.options" listKey="key" listValue="value.name"  headerKey="" headerValue="全部"/>
	单据状态：<s:select name="claimStatusParam" 
		list="claimStatusMenu.options" listKey="key" listValue="value.name"  headerKey="" headerValue="全部" />
	<input type="button" value="搜寻" onClick="this.form.submit();" />
</s:form></div>
<br />
<br />
<br />
<table class="tb-1" width="100%">
	<thead>
		<tr>
			<th>招领单号</th>
			<th>订单编号</th>
			<th>汇款人</th>
			<th>汇款银行</th>
			<th>处理方式</th>
			<th>汇款时间</th>
			<th>申请日期</th>
			<th>汇款金额</th>
			<th>电话/地址</th>
			<th>招领状态</th>
			<th>处理人员</th>
		</tr>
	</thead>
	<tbody>
		<c-rt:forEach items="${applyClaims}" var="applyClaim" varStatus="rows_index">
			<tr class="${rows_index.count % 2 == 0 ? 'bg-yl' : ''}">
				<td><a href="../applyClaim/view.do?applyClaimId=${applyClaim.id}">${applyClaim.id}</a></td>
				<td>${applyClaim.orderId}</td>
				<td>${applyClaim.claimName}</td>
				<td>${applyClaim.bankName}</td>
				<td>${claimTypeMenu.options[applyClaim.claimType].name}</td>
				<td><fmt-rt:formatDate value="${applyClaim.expectDate}"
					pattern="yyyy-MM-dd HH:mm:ss" /></td>
				<td><fmt-rt:formatDate value="${applyClaim.applyDate}"
					pattern="yyyy-MM-dd HH:mm:ss" /></td>
				<td>${applyClaim.claimAmount}</td>
				<td>
					${applyClaim.contactPhone}<br/>
					${applyClaim.contactAddress}
				</td>
				<td>${claimStatusMenu.options[applyClaim.claimStatus].name}</td>
				<td>${applyClaim.modifyUser}</td>
			</tr>
		</c-rt:forEach>
	</tbody>
</table>
<yaodian100:pageutil link="search.do" pagerObj="${pager}" />